package jee.boot.module.elasticsearch.entity;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * 文档模型
 */
public class Document implements Serializable {
    /**
     * 文档主键
     */
    private String id;
    /**
     * 索引名称
     */
    private String indexName;
    //分页-开始行
    private int from;
    //分页-页面数据条数
    private int size;
    //查询条件拼接的字符串
    private Map<String,Object> query;
    /**
     * 文档数据
     */
    private Map<String,Object> data=new HashMap<>();

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIndexName() {
        return indexName;
    }

    public void setIndexName(String indexName) {
        this.indexName = indexName;
    }

    public Map<String, Object> getData() {
        return data;
    }

    public void setData(Map<String, Object> data) {
        this.data = data;
    }

    public int getFrom() {
        return from;
    }

    public void setFrom(int from) {
        this.from = from;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public Map<String, Object> getQuery() {
        return query;
    }

    public void setQuery(Map<String, Object> query) {
        this.query = query;
    }
}
